// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.;
import Vue from 'vue';
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import App from './App.vue';
import router from './router';
import echarts from 'echarts';
import axios from 'axios';
import $ from 'jquery';
import babelpolyfill from 'babel-polyfill';//解决iview低版本不兼容问题
// 注册使用router
// Vue.use(Router)
Vue.use(iView)
Vue.use(babelpolyfill)
// 将Promise抛出为全局对象
window.Promise = Promise;
window.jQuery = $;
window.$ = $;
Vue.prototype.$echarts = echarts;
//cookie
axios.defaults.withCredentials = true;
// 将axios挂在到Vue原型上成为全局属性
Vue.prototype.$Ajax = axios;

new Vue({
  el: '#app',
  router,
  components: {
    App
  },
  template: "<App/>"
})


